package com.sfx.concurrent.demo.concurrent.ExcutorService;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-01-26
 * Time: 16:40
 */

public class TestStarvation {

    public static void main(String[] args) {
        ExecutorService service = Executors.newFixedThreadPool(2);

        service.execute(()->{
            Future<?> submit = service.submit(() -> {

            });
        });

    }

}
